package com.cg.mapper;

import com.cg.domain.entity.UserBehavior;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserBehaviorMapper {

    @Insert("INSERT INTO user_behavior(user_id, job_id, job_type, city, behavior_type, search_keyword, page_view_duration, session_id, ip_address, timestamp, create_time, update_time) " +
            "VALUES(#{userId}, #{jobId}, #{jobType}, #{city}, #{behaviorType}, #{searchKeyword}, #{pageViewDuration}, #{sessionId}, #{ipAddress}, #{timestamp}, NOW(), NOW())")
    int insert(UserBehavior behavior);
}


